package cl.rizepe.playntest.core.menu;

import pythagoras.f.Point;

public class MenuDirection9 implements MenuDirection {

	protected Point origin;
	protected Point buttonSize;
	protected Point menuOrigin;
	protected int direction;
	
	public int getDirection() {
		return direction;
	}

	public void setDirection(int direction) {
		this.direction = direction;
	}


	
	
	public Point getOrigin() {
		return origin;
	}

	public void setOrigin(Point origin) {
		this.origin = origin;
	}

	public Point getButtonSize() {
		return buttonSize;
	}

	public void setButtonSize(Point buttonSize) {
		this.buttonSize = buttonSize;
	}
	
	public MenuDirection9(Point origin, Point buttonSize, int direction){
		this.origin=origin;
		this.buttonSize=buttonSize;
		this.direction=direction;
		
	}
	
	
	@Override
	public Point pointLocation(int index) {
		// TODO Auto-generated method stub
		float x= ((direction-1)%3-1)*index*buttonSize.x();
		float y =((direction-1)/3-1)*index*buttonSize.y();
		return new Point(x,y);
	}

}
